package com.student.xujiang.mysmalluse.companylogin.retrofit2protogenesis;
import com.student.xujiang.mysmalluse.companylogin.model.LoginRequest;
import com.student.xujiang.mysmalluse.companylogin.model.LoginResponse;
import com.student.xujiang.mysmalluse.companylogin.model.RegisterRequest;
import com.student.xujiang.mysmalluse.companylogin.model.RegisterResponse;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.Call;

/**
 * Created by xujiang on 2017/3/22.
 *
 * 注解详解
 * http://www.jianshu.com/p/bf884248cb37
 *
 */

public interface UserService {
    //@Headers({"Content-Type: application/json","Accept: application/json"})//需要添加头 
    @POST("/bleLogin")
    Call<LoginResponse> login(@Body LoginRequest loginRequest);


    @POST("/bleRegister")
    Call<RegisterResponse> register(@Body RegisterRequest registerRequest);


}
